<?php

namespace app\config;

class Constants {

    //来源
    const SOURCE_MINI = 'mini';
    const SOURCE_H5 = 'h5';

    //角色标识
    const USER = 1;
    const MERCHANT = 2;
    const ADMIN = 3;

    //登陆类型
    const USERNAME = 1;
    const PHONE = 2 ;
    const EMAIL = 3;
    const WECHAT = 4;

    //审核状态
    const VERIFY_WAIT =1;
    const VERIFY_SUCCESS =2;
    const VERIFY_FAIL =3;

    //订单状态
    const ORDER_WAIT = 1; //待接单
    const ORDER_CANCEL = 2; //取消
    const ORDER_ACCEPT =3; //接单
    const ORDER_COMPLETE = 4; //完成
    const ORDER_ADJUST = 5; //待调单
    const ORDER_WAIT_PAYMENT = 6; //待付款

    //配送方式
    const DELIVERY_MERCHANT = 1; //商家自配
    const DELIVERY_PLATFORM = 2; //平台配送

    //支付方式
    const PAY_DELIVERY = 1; //货到付款
    const PAY_WECHAT = 2; //微信
    const PAY_ALIPAY = 3; //支付宝

    //支付状态
    const PAY_STATUS_WAIT = 1; //待支付
    const PAY_STATUS_CANCEL = 2; //取消支付
    const PAY_STATUS_SUCCESS = 3;//支付成功
    const PAY_STATUS_REFUND = 4;//退款

    //店铺客户类型
    const CUSTOMER_TYPE_BOTH = 1;
    const CUSTOMER_TYPE_STORE = 2;
    const CUSTOMER_TYPE_USER = 3;

    //用户和商户和打印机状态
    const STATUS_NORMAL = 2;
    const STATUS_PROHIBIT =1;
    //用户类型
    const TYPE_STORE = 2; //店铺
    const TYPE_USER = 3; //用户
    //商品状态
    const GOODS_STATUS_ONLINE = 2; //上线
    const GOODS_STATUS_OFFLINE = 1; //下线

    //消息类型
    const MSG_TYPE_ORDER = 1; //订单消息
    //事件类型
    const EVENT_TYPE_ORDER_REPEAT_PRINT = 11; //重新打印
}